<script>
  import $ from '../dfish.js'
  import {
    h
  } from 'vue'
  import CheckBox from './CheckBox.vue'

  export default {
    name: 'w-radio',
    pubParentName: 'w-radiogroup',
    mixins: [CheckBox],
    methods: {

    },
    computed: {
      input_type() {
        return 'radio'
      },
      input_icon() {
        return 'f-i'
      },
      input_name() {
        return this.w_name + '@' + this.ownerView.uid
      },
      w_name() {
        return this.x.name || (this.pubParent && this.pubParent.x.name)
      },
      input_prop() {
        return {'w-name': this.w_name}
      }

    }
  }
</script>
